package com.betty.cscams.dao;

import java.util.List;
import java.util.Map;

import com.betty.cscams.entity.SysUser;
import com.betty.cscams.vo.UserInfoBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface SysUserMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SysUser record);

    int insertSelective(SysUser record);

    SysUser selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysUser record);

    int updateByPrimaryKey(SysUser record);
    
    List<SysUser> findPage(@Param(value="type") String type,@Param(value="deptId") String deptId);
    
    SysUser findByName(@Param(value="name") String name);
    
	List<SysUser> findPageByName(@Param(value="name") String name,@Param(value="type") String type,@Param(value="deptId") String deptId);
	
	List<SysUser> findPageByNameAndEmail(@Param(value="name") String name, @Param(value="email") String email,@Param(value="type") String type);

    List<SysUser> findUserOptions(@Param(value="id") Long id,@Param(value="type") String type);

    List<SysUser> findByType(@Param(value="type") String type);

    int updatePersonInfo(UserInfoBean userInfo);

    List<SysUser> findListByDeptId(Long deptId);

    SysUser selectAuditUser(@Param(value="deptId") Long deptId,@Param(value="type") Integer type);
}